from calc.models import Wrong
from django.http import HttpResponse
import json
from common.page_util import page_util, page_low_util


def wrong_page(request):
    data = json.loads(request.body)
    page = data['page']
    limit = data['limit']
    server_list = Wrong.objects.all().order_by("-date")
    return page_util(server_list, page, limit)